﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Widget.ascx.cs" Inherits="SLIITPro.Controls.Widget" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:UpdatePanel ID="UpWidget" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table class="gridtable" width="100%">
            <tr>
                <td>
                    <cc1:Rating ID="RatingBusiness" runat="server" AutoPostBack="true" CurrentRating="0"
                        MaxRating="5" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
                        FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" Style="float: left;"
                        OnChanged="RatingBusiness_Changed">
                    </cc1:Rating>
                </td>
                <td>
                    <asp:Label ID="lblRating" runat="server" /><br />
                    <% if (Page.User.Identity.IsAuthenticated && !Page.User.IsInRole("information"))
                       { %>
                    <asp:LinkButton ID="lnkWishList" runat="server" OnClick="lnkWishList_Click"></asp:LinkButton>
                    <%} %>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
